#include "StdAfx.h"
#include "colony7.h"
#include "machine/defendermachine.h"

static InputPort Port1 =
	{
		{
		{"Down",			I_DOWN,		0x01,	I_HIGH},
		{"Right",		I_RIGHT,		0x02,	I_HIGH},
		{"Left",			I_LEFT,		0x04,	I_HIGH},
		{"Up",			I_UP,			0x08,	I_HIGH},
		{"Start 2",		I_START2,	0x10,	I_HIGH},
		{"Start 1",		I_START1,	0x20,	I_HIGH},
		{"Button 1",	I_B1,			0x40,	I_HIGH},
		{"Button 2",	I_B2,			0x80,	I_HIGH},
		}
	};

static InputPort Port2 =
	{
		{
		{"Button 3",	I_B3,			0x01,	I_HIGH},
		{"Unknown",		0,				0x02,	I_HIGH},
		{"Unknown",		0,				0x04,	I_HIGH},
		{"Unknown",		0,				0x08,	I_HIGH},
		{"Unknown",		0,				0x10,	I_HIGH},
		{"Unknown",		0,				0x20,	I_HIGH},
		{"Unknown",		0,				0x40,	I_HIGH},
		{"Unknown",		0,				0x80,	I_HIGH},
		}
	};

static InputPort Port3 =
	{
		{
		{"Unknown",				0,				0x01,	I_HIGH},
		{"Unknown",				0,				0x02,	I_HIGH},
		{"Unknown",				0,				0x04,	I_HIGH},
		{"Unknown",				0,				0x08,	I_HIGH},
		{"Coin 1",				I_COIN1,		0x10,	I_HIGH},
		{"Tilt",					I_TILT,		0x20,	I_HIGH},
		{"Unknown",				0,				0x40,	I_HIGH},
		{"Unknown",				0,				0x80,	I_HIGH},
		}
	};

static highscore_t highscore[] =
	{
//	{0xB260,0x60,0x00,0x48},
	{0,-1}
	};

Ccolony7::Ccolony7()
{
SetName("colony7");						//set romset name
SetScreen(304,256,ROTATE_270);
SetHighScoreInfo(highscore);
SetPort(0,&Port1);
SetPort(1,&Port2);
SetPort(2,&Port3);
AddROM("cs03.bin",	0xD000,0x1000,0x7ee75ae5,ROM_CPU1);
AddROM("cs02.bin",	0xE000,0x1000,0xc60b08cb,ROM_CPU1);
AddROM("cs01.bin",	0xF000,0x1000,0x1bc97436,ROM_CPU1);
AddROM("cs06.bin",	0x10000,0x0800,0x318b95af,ROM_CPU1);
AddROM("cs04.bin",	0x10800,0x0800,0xd740faee,ROM_CPU1);
AddROM("cs07.bin",	0x11000,0x0800,0x0b23638b,ROM_CPU1);
AddROM("cs05.bin",	0x11800,0x0800,0x59e406a8,ROM_CPU1);
AddROM("cs08.bin",	0x12000,0x0800,0x3bfde87a,ROM_CPU1);
DupROM(					0x12800,0x0800);
AddROM("cs11.bin",	0xF800,0x0800,0x6032293c,ROM_CPU2);
}

CMachine *Ccolony7::CreateMachine()
{
return(new CDefenderMachine());
}
